@extends('admin.layout.index')
@section('content')
<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span>分类添加</span>
                    </div>
                    <div class="mws-panel-body no-padding">
                    	<form action="/admin/cart/insert" class="mws-form" method='post'>
                    		{{csrf_field()}}
                    		<div class="mws-form-inline">
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">分类名称</label>
                    				<div class="mws-form-item">
                    					<input type="text" class="small" name="cname">
                    				</div>
                    			</div>
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">分类所属组</label>
                    				<div class="mws-form-item">
                    					<select class="large" name="pid">
                    					<option>--请选择--</option>
                    					@foreach($data as $k => $v)
                    						<option value="{{$v['id']}}">{{$v['cname']}}</option>
                    					@endforeach
                    					</select>
                    				</div>
                    			</div>
                    		</div>
                    		<div class="mws-button-row">
                    			<input type="submit" class="btn btn-danger" value="添加">
                    			<input type="reset" class="btn " value="重置">
                    		</div>
                    	</form>
                    </div>    	
                </div>
@endsection
